﻿using System;

namespace Flowertwig.Utils.Compression.General
{
    /// <summary>
    /// Event arguments for scanning.
    /// </summary>
    public class ScanEventArgs : EventArgs
    {
        /// <summary>
        /// Initialise a new instance of <see cref="ScanEventArgs"/>
        /// </summary>
        /// <param name="name"></param>
        public ScanEventArgs(string name)
        {
            this.name = name;
            ContinueRunning = true;
        }

        string name;

        /// <summary>
        /// The name for this event.
        /// </summary>
        public string Name
        {
            get { return name; }
        }

        bool continueRunning;

        /// <summary>
        /// Get set a value indicating if scanning should continue or not.
        /// </summary>
        public bool ContinueRunning
        {
            get { return continueRunning; }
            set { continueRunning = value; }
        }
    }
}